$tab-item-active-background-color: #e7f3fc;

.skeleton-nav-tabs.el-tabs {
  position: absolute;
  right: 0;
  left: $sidebar-width;
  height: $nav-bar-height;
  padding-left: 14px;
  border: none;
  transition: all 0.3s;

  .el-tabs__header {
    text-align: center;
    border-bottom: none;
  }

  &.el-tabs--border-card {
    box-shadow: none;
  }

  .el-tabs__item {
    min-width: 140px;
    max-width: 140px;

    // border-right: 1px solid #bad4f9;
    height: 40px;
    margin: 5px;
    padding: 0 13px !important;
    overflow: hidden;
    color: #303133;
    line-height: 40px;
    text-overflow: ellipsis;
    background-color: #ececec;
    border: none;
    border-right: 1px solid var(--color-primary);

    &:focus.is-active.is-focus:not(:active) {
      border-radius: unset;
      box-shadow: none;
    }

    &:not(.is-disabled) {
      &.is-active,
      &:hover,
      &:focus {
        color: #fff;
        background: var(--color-primary);
        border-right: 1px solid var(--color-primary);
      }
    }

    .tab-label {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      outline: none;
    }

    .tab-icon {
      margin-right: 4px;
    }

    .el-icon-close {
      position: absolute;
      top: 12px;
      right: 4px;
      width: 16px;
      height: 16px;
      line-height: 16px;
      transition: none;
    }
  }

  .el-tabs__nav {
    z-index: unset;
    margin: 0;
    line-height: 0;
  }

  .el-tabs__nav-next,
  .el-tabs__nav-prev {
    height: $nav-bar-height;
    color: #fff;
    line-height: $nav-bar-height;
    background: var(--color-primary);

    &:hover {
      background: var(--color-primary);
    }
  }

  .el-tabs__content {
    display: none;
  }

  .is-scrollable {
    height: $nav-bar-height;
    padding: 0 13px;
  }
}

// 右键菜单
.context-menu {
  position: fixed;

  /* box-shadow: 0 5px 10px #bebebe; */
  z-index: 9999;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);

  .context-menu-item {
    display: block;
    width: 120px;
    padding: 12px 20px;
    color: #242f42;
    font:
      normal 14px tahoma,
      arial,
      sans-serif;
    line-height: 100%;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
    user-select: none;

    &:hover {
      color: var(--color-primary);
      background-color: #ecf5ff;
    }
  }
}
